<template>
  <div class="app-container">
    <el-row>
        <el-form ref="ruleForm" :model="rowData" rel="operateFrom" label-position="right" label-width="100px">
          <el-form-item label="收件人：" prop="name">
            <el-input class="width250" auto-complete="off" v-model="rowData.name" size="medium" :disabled="true"></el-input>
          </el-form-item>
          <el-form-item label="联系电话：" prop="mobile">
            <el-input class="width250" auto-complete="off" v-model="rowData.mobile" size="medium" :disabled="true"></el-input>
          </el-form-item>
          <el-form-item label="收货地址：" prop="address">
            <el-input type="textarea" class="width250" auto-complete="off" v-model="rowData.address" size="medium" :disabled="true"></el-input>
          </el-form-item>
        </el-form>
    </el-row>
    <span slot="footer" class="dialog-footer">
      <el-button class="width100 assign-prize-cancle" size="medium" @click="cancel">取消</el-button>
      <el-button class="width100" size="medium" type="primary" @click="cancel">确定</el-button>
    </span>
  </div>
</template>

<script>
export default {
  props: ['rowData'],
  methods: {
    cancel() {
      this.$emit('input', false);
    },
  },
};
</script>

<style lang="scss" scoped>
  .app-container{
    padding-top: 0;
    text-align: center;
  }
  .width100{
    width: 100px;
  }
  .width250{
    width: 200px;
  }
  .assign-prize-cancle{
    margin: 10px 40px 0 0;
  }
</style>
